package com.wr.dao;

import com.wr.model.EmailCodeEntity;
import org.apache.ibatis.session.RowBounds;

import java.util.List;
import java.util.Map;

/**
 * @ClassName: EmailCodeEntityMapper
 * @author wurui
 * @Description: 邮箱验证码mapper
 * @date 2016-12-09
 */
public interface EmailCodeEntityMapper {
    /**
     * 根据邮箱查询验证码
     * @param email 邮箱
     * @return  返回值
     */
    List<EmailCodeEntity> selectByEmail(String email);

    List<EmailCodeEntity> selectCodeList(RowBounds rowBounds);

    int countCodeList();

    void insertEmailCode(EmailCodeEntity emailCodeEntity);

    void updateEmailCode(EmailCodeEntity emailCodeEntity);

    void deleteEmailCode(int id);
}